_overPopupItem=function(event){
	event=event||window.event;
	var ele=event.target || event.srcElement;
	ele.className=ele.parentNode.getAttribute("overClass");
};
_outPopupItem=function(event){
	event=event||window.event;
	var ele=event.target || event.srcElement;
	ele.className=ele.parentNode.getAttribute("outClass");
};
_initPopup=function(div){
	var list=div.childNodes;
	var cls=div.getAttribute("outClass");
	for(var i=0,k=list.length;i<k;i++){
		if(list[i].nodeName=='DIV'){
			list[i].className=cls;
			list[i].style.cursor="default";
			list[i].onmouseover=_overPopupItem;
			list[i].onmouseout=_outPopupItem;
		}
	}
};
_sinitech_current_menu=null;
function showMenu(id,x,y){
	var ele=document.getElementById(id);
	_initPopup(ele);
	ele.style.left=x+"px";
	ele.style.top=y+"px";
	ele.style.visibility="visible";
	_sinitech_current_menu=ele;
};
function _oncontextmenu(event){
	event=event||window.event;
	if (event.preventDefault) {
  		event.preventDefault();
  		event.stopPropagation();
	} else {
  		event.returnValue = false;
  		event.cancelBubble = true;
	}
	return false;
};
function _onmouseup(event){
	event=event||window.event;
	if(_sinitech_current_menu){
		_sinitech_current_menu.style.visibility="hidden";
	}
	if((((event.which) && (event.which != 1)) ||
    ((event.button) && (event.button != 1)))){
		var src=event.target || event.srcElement;
		if(src.id&&src.id.indexOf("div")==0){
			var x,y;
			if(event.pageX || event.pageY){
				x=event.pageX;
				y=event.pageY;
			}
			else{
				x=event.clientX +(document.documentElement.scrollLeft || document.body.scrollLeft);
				y=event.clientY + (document.documentElement.scrollTop || document.body.scrollTop);
			}
			showMenu("menu"+src.id.substring(3),x,y);
			return;
		}
	}
};
window.onload=function(){
	document.documentElement.oncontextmenu=_oncontextmenu;
	document.documentElement.onmouseup=_onmouseup;
}
function configDecision(id){
	window.open("decision.action?activeId="+id);
};
function configActive(id){
	window.open("active.action?activeId="+id);
};
function configOperation(id){
	window.open("operation.action?activeId="+id);
};
function configRole(id){
	window.open("role.action?activeId="+id);
};
function configForm(id){
	window.open("form.action?activeId="+id);
};